<!doctype html>
<html>
<head>
    {% load static %}
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>张勋作业</title>
  <meta name="keywords" content="responsive, contact, bootstrap, free template, fluid layout, templatemo, html css" />
  <meta name="description" content="Responsive Theme, Contact, free template based on Bootstrap framework." />
  <link href={% static "css/bootstrap.min.css" %} rel="stylesheet" type="text/css">
  <link href="templatemo_style_fix_menu.css" rel="stylesheet" type="text/css">
  <link href={% static "css/bootstrap-responsive.min.css" %} rel="stylesheet" type="text/css">
  <link href="http://netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.css" rel="stylesheet" type="text/css">
  <link href="templatemo_style.css" rel="stylesheet" type="text/css">
  <!-- HTML 5 shim for IE backwards compatibility -->
  <!-- [if lt IE 9]>
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js">
  </script>
  <![endif]-->
</head>
<body>
  <header>
    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="brand" href={% url "index" %} target="_parent">张勋作业</a>
          <nav class="nav-collapse collapse">
            <ul class="nav pull-right">
              <li><a href={% url "index" %}>主页</a></li>
              <li><a href={% url "about" %}>关于</a></li>
              <li><a href={% url "showall" %}>展示</a></li>

              <li class="active"><a href={% url "scontact" %}>联系我们</a></li>
              {% if request.user.is_authenticated %}
                     <li><a href="">{{ request.user.username }}</a></li>
                            <li><a href={% url "mylogout" %}>退出 </a></li>
                    {% else %}
                     <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">登录 <span class="caret"></span></a>
                        <form action={% url "login" %} method="post" class="dropdown-menu">
                            {% csrf_token %}
                            {{ mlogin }}
                          <input type="submit" value="登录">
                        </form>
                     </li>
                     <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">注册 <span class="caret"></span></a>
                        <form action={% url "logup" %} method="post" class="dropdown-menu">
                            {% csrf_token %}
                            {{ msignup }}
                          <input type="submit" value="注册">
                        </form>
              </li>
                    {% endif %}
            </ul>
          </nav>
        </div>
      </div>
    </div>
  </header>
  <section class="container" id="page_content">
    <div class="row">
      <section class="span12">
          <br><br>
        <h3>联系我们</h3>
        <p>请留下您的联系方式和意见.</p>
        <div id="contact_form">
          <form method="post" name="contact" action={% url "scontact" %}>
              {% csrf_token %}
            <div class="row">
              <div class="span6">
                <label for="author">姓名:</label> <input name="name" type="text" class="input_field" id="name" maxlength="40" />
                <div class="cleaner"></div>
                <label for="email">邮箱:</label> <input name="email" type="text" class="input_field" id="email" maxlength="40" />
                <div class="cleaner"></div>
                <label for="phone">电话:</label> <input name="phone" type="text" class="input_field" id="phone" maxlength="20" />
                <div class="cleaner"></div>
              </div>
              <div class="span6">
                <label for="text">留言:</label> <textarea  id="massage" name="massage" rows="7" cols="5" class="required"></textarea>
                <div class="cleaner"></div>

                <input type="submit" value="Send" id="submit" name="submit" class="btn btn-info float_l" />
                <input type="reset" value="Reset" id="reset" name="reset" class="btn float_r" />
              </div>
            </div>
          </form>
        </div> 
      </section>
    </div>
    <hr class="featurette-divider">
    <section>
      <h4>Our Location</h4><br>      
      <iframe width="1100" height="500" src="http://j.map.baidu.com/MTcT2"></iframe>
    </section>
  </section>
  <footer>
    <div class="container">        
      <div id= "latest" class="row">

       
       <section class="span4 rp_box_wrapper">

        <h4> 联系我们 <i class="icon-envelope icon-white"></i></h4>

        <address>
          <strong>地址</strong><br>
          天府软件园B区5栋,<br>
      	  成都高新区天华一路<br>

          <abbr title="Phone">Phone:</abbr> <a href="tel:+86 182 0285 2911" title="give us a call">+86 182 0285 2911</a><br>
          <abbr title="Email">Email:</abbr> <a href="15928646660@163.com">15928646660@163.com</a>
        </address>

      </section>
      
    </div>
      <div class="credit">
        <p id="templatemo_cr_bar">
          网页素材来自 | <a  href="http://www.cssmoban.com/">模板之家</a>
        </p>
      </div>
    </div>
  </footer>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src={% static "js/bootstrap.min.js" %}></script>
</body>
</html>